/*mgBVjmwkvoNAq04L4PpN6Vp+uTjoIWUNbmacAQMIS+vxdwNId6FdmY3MWL3PBpZ2*/
import { cytjCode, bfCode, dfCode, publicCode } from '../constants';
import { pubBeforeEvent } from '../../../public/publicMethods/pubBeforeEvent.js';
import { formBeforeEvent } from '../../../public/filter/copyFormRefFilter.js';

export default function beforeEvent(props, moduleId, key, value, data) {
	// props, moduleId(区域id), key(操作的键), value（当前值）,data(当前表单所有值)

	//常用条件编辑后事件
	if (moduleId == cytjCode) {
		pubBeforeEvent(this, props, moduleId, key, value, data, cytjCode, bfCode, dfCode, publicCode);
	}
	if(moduleId=="Copyform"){
		formBeforeEvent(this,props,moduleId,key, value, data);
	}

	return true;
}

/*mgBVjmwkvoNAq04L4PpN6Vp+uTjoIWUNbmacAQMIS+vxdwNId6FdmY3MWL3PBpZ2*/